import request from '@/utils/request'

// 查询团队时间列表
export function listTeamTime(query) {
  return request({
    url: '/eqxm/teamTime/list',
    method: 'get',
    params: query
  })
}

// 查询团队时间详细
export function getTeamTime(id) {
  return request({
    url: '/eqxm/teamTime/' + id,
    method: 'get'
  })
}

// 新增团队时间
export function addTeamTime(data) {
  return request({
    url: '/eqxm/teamTime',
    method: 'post',
    data: data
  })
}

// 修改团队时间
export function updateTeamTime(data) {
  return request({
    url: '/eqxm/teamTime',
    method: 'put',
    data: data
  })
}

// 删除团队时间
export function delTeamTime(id) {
  return request({
    url: '/eqxm/teamTime/' + id,
    method: 'delete'
  })
}

// 导出团队时间
export function exportTeamTime(query) {
  return request({
    url: '/eqxm/teamTime/export',
    method: 'get',
    params: query
  })
}

// 导出团队时间
export function getPerson(id) {
  return request({
    url: '/eqxm/team/selectStudeteachList/' + id,
    method: 'get',
  })
}